package car;

import cn.yunhe.entity.Cars;
import cn.yunhe.service.CarsService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 孙敖
 * @date 2018/9/27 16:09
 */
public class CarDemo {

    ApplicationContext ac=new ClassPathXmlApplicationContext("spring/spring-mybatis.xml");

    CarsService carsService= (CarsService) ac.getBean("carsService");

    @Test
    public  void test(){
     /*   Cars cars=new Cars();
        cars.setCarUuid("0b5e4732ba4611e89c790235d2b38928");*/
   /*  String str="0b5e4732ba4611e89c790235d2b38928";
        Cars cars1=carsService.getCarsById(str);
        System.out.println(cars1.getCarUuid());*/
        /*System.out.println(cars1.getColor());*/
    }


}
